package com.example.webbasic.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器
 * 1、Servlet先执行，Controller后执行，若Servlet已处理请求，Controller接收不到请求；
 * @author ben
 * @date 2021-11-06 15:55:59 CST
 */
@RestController
@RequestMapping(value="/my")
public class MyController {

	@GetMapping(value="/hello")
	public String hello() {
		return "hello from controller";
	}
	
}
